package com.navi.loaddata.core.oracleEntity.cell2;


import javax.persistence.*;
import java.util.Date;

/**
 * Created by ghost on 2018/3/25.
 */
@Entity
@Table(name = "ETL_CELL2_PDS_CHIP_V", schema = "EDALDR", catalog = "")
@IdClass(EtlCell2PdsChipVPK.class)
public class EtlCell2PdsChipV {
    private String stepId;
    private String subEquipId;
    private String chipId;
    private Date chipEndTime;
    private Date chipStartTime;
    private String productId;
    private String productVersion;
    private String routeId;
    private String groupId;
    private String equipId;
    private String runMode;
    private String recipeId;
    private String operatorId;
    private String cstId;
    private String taShift;
    private String lotType;
    private String ownerId;
    private String ownerType;
    private String slotNo;
    private String abnormalFlag;
    private String mesLinkKry;
    private String maskId;
    private Date preEndTime;
    private String preStepId;
    private String preEquipId;
    private String preSubEquipId;
    private String preRecipeId;
    private String preSubRecipeId;
    private String arrayGlassId;
    private String cfGlassId;
    private String glassId;
    private String chipNo;

    @Id
    @Column(name = "STEP_ID")
    public String getStepId() {
        return stepId;
    }

    public void setStepId(String stepId) {
        this.stepId = stepId;
    }

    @Id
    @Column(name = "SUB_EQUIP_ID")
    public String getSubEquipId() {
        return subEquipId;
    }

    public void setSubEquipId(String subEquipId) {
        this.subEquipId = subEquipId;
    }

    @Id
    @Column(name = "CHIP_ID")
    public String getChipId() {
        return chipId;
    }

    public void setChipId(String chipId) {
        this.chipId = chipId;
    }

    @Id
    @Column(name = "CHIP_END_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getChipEndTime() {
        return chipEndTime;
    }

    public void setChipEndTime(Date chipEndTime) {
        this.chipEndTime = chipEndTime;
    }

    @Basic
    @Column(name = "CHIP_START_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getChipStartTime() {
        return chipStartTime;
    }

    public void setChipStartTime(Date chipStartTime) {
        this.chipStartTime = chipStartTime;
    }

    @Basic
    @Column(name = "PRODUCT_ID")
    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    @Basic
    @Column(name = "PRODUCT_VERSION")
    public String getProductVersion() {
        return productVersion;
    }

    public void setProductVersion(String productVersion) {
        this.productVersion = productVersion;
    }

    @Basic
    @Column(name = "ROUTE_ID")
    public String getRouteId() {
        return routeId;
    }

    public void setRouteId(String routeId) {
        this.routeId = routeId;
    }

    @Basic
    @Column(name = "GROUP_ID")
    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    @Basic
    @Column(name = "EQUIP_ID")
    public String getEquipId() {
        return equipId;
    }

    public void setEquipId(String equipId) {
        this.equipId = equipId;
    }

    @Basic
    @Column(name = "RUN_MODE")
    public String getRunMode() {
        return runMode;
    }

    public void setRunMode(String runMode) {
        this.runMode = runMode;
    }

    @Basic
    @Column(name = "RECIPE_ID")
    public String getRecipeId() {
        return recipeId;
    }

    public void setRecipeId(String recipeId) {
        this.recipeId = recipeId;
    }

    @Basic
    @Column(name = "OPERATOR_ID")
    public String getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId;
    }

    @Basic
    @Column(name = "CST_ID")
    public String getCstId() {
        return cstId;
    }

    public void setCstId(String cstId) {
        this.cstId = cstId;
    }

    @Basic
    @Column(name = "TA_SHIFT")
    public String getTaShift() {
        return taShift;
    }

    public void setTaShift(String taShift) {
        this.taShift = taShift;
    }

    @Basic
    @Column(name = "LOT_TYPE")
    public String getLotType() {
        return lotType;
    }

    public void setLotType(String lotType) {
        this.lotType = lotType;
    }

    @Basic
    @Column(name = "OWNER_ID")
    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    @Basic
    @Column(name = "OWNER_TYPE")
    public String getOwnerType() {
        return ownerType;
    }

    public void setOwnerType(String ownerType) {
        this.ownerType = ownerType;
    }

    @Basic
    @Column(name = "SLOT_NO")
    public String getSlotNo() {
        return slotNo;
    }

    public void setSlotNo(String slotNo) {
        this.slotNo = slotNo;
    }

    @Basic
    @Column(name = "ABNORMAL_FLAG")
    public String getAbnormalFlag() {
        return abnormalFlag;
    }

    public void setAbnormalFlag(String abnormalFlag) {
        this.abnormalFlag = abnormalFlag;
    }

    @Basic
    @Column(name = "MES_LINK_KRY")
    public String getMesLinkKry() {
        return mesLinkKry;
    }

    public void setMesLinkKry(String mesLinkKry) {
        this.mesLinkKry = mesLinkKry;
    }

    @Basic
    @Column(name = "MASK_ID")
    public String getMaskId() {
        return maskId;
    }

    public void setMaskId(String maskId) {
        this.maskId = maskId;
    }

    @Basic
    @Column(name = "PRE_END_TIME")
    @Temporal(TemporalType.TIMESTAMP)
    public Date getPreEndTime() {
        return preEndTime;
    }

    public void setPreEndTime(Date preEndTime) {
        this.preEndTime = preEndTime;
    }

    @Basic
    @Column(name = "PRE_STEP_ID")
    public String getPreStepId() {
        return preStepId;
    }

    public void setPreStepId(String preStepId) {
        this.preStepId = preStepId;
    }

    @Basic
    @Column(name = "PRE_EQUIP_ID")
    public String getPreEquipId() {
        return preEquipId;
    }

    public void setPreEquipId(String preEquipId) {
        this.preEquipId = preEquipId;
    }

    @Basic
    @Column(name = "PRE_SUB_EQUIP_ID")
    public String getPreSubEquipId() {
        return preSubEquipId;
    }

    public void setPreSubEquipId(String preSubEquipId) {
        this.preSubEquipId = preSubEquipId;
    }

    @Basic
    @Column(name = "PRE_RECIPE_ID")
    public String getPreRecipeId() {
        return preRecipeId;
    }

    public void setPreRecipeId(String preRecipeId) {
        this.preRecipeId = preRecipeId;
    }

    @Basic
    @Column(name = "PRE_SUB_RECIPE_ID")
    public String getPreSubRecipeId() {
        return preSubRecipeId;
    }

    public void setPreSubRecipeId(String preSubRecipeId) {
        this.preSubRecipeId = preSubRecipeId;
    }

    @Basic
    @Column(name = "ARRAY_GLASS_ID")
    public String getArrayGlassId() {
        return arrayGlassId;
    }

    public void setArrayGlassId(String arrayGlassId) {
        this.arrayGlassId = arrayGlassId;
    }

    @Basic
    @Column(name = "CF_GLASS_ID")
    public String getCfGlassId() {
        return cfGlassId;
    }

    public void setCfGlassId(String cfGlassId) {
        this.cfGlassId = cfGlassId;
    }

    @Basic
    @Column(name = "GLASS_ID")
    public String getGlassId() {
        return glassId;
    }

    public void setGlassId(String glassId) {
        this.glassId = glassId;
    }

    @Basic
    @Column(name = "CHIP_NO")
    public String getChipNo() {
        return chipNo;
    }

    public void setChipNo(String chipNo) {
        this.chipNo = chipNo;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        EtlCell2PdsChipV that = (EtlCell2PdsChipV) o;

        if (stepId != null ? !stepId.equals(that.stepId) : that.stepId != null) return false;
        if (subEquipId != null ? !subEquipId.equals(that.subEquipId) : that.subEquipId != null) return false;
        if (chipId != null ? !chipId.equals(that.chipId) : that.chipId != null) return false;
        if (chipEndTime != null ? !chipEndTime.equals(that.chipEndTime) : that.chipEndTime != null)
            return false;
        if (chipStartTime != null ? !chipStartTime.equals(that.chipStartTime) : that.chipStartTime != null)
            return false;
        if (productId != null ? !productId.equals(that.productId) : that.productId != null) return false;
        if (productVersion != null ? !productVersion.equals(that.productVersion) : that.productVersion != null)
            return false;
        if (routeId != null ? !routeId.equals(that.routeId) : that.routeId != null) return false;
        if (groupId != null ? !groupId.equals(that.groupId) : that.groupId != null) return false;
        if (equipId != null ? !equipId.equals(that.equipId) : that.equipId != null) return false;
        if (runMode != null ? !runMode.equals(that.runMode) : that.runMode != null) return false;
        if (recipeId != null ? !recipeId.equals(that.recipeId) : that.recipeId != null) return false;
        if (operatorId != null ? !operatorId.equals(that.operatorId) : that.operatorId != null) return false;
        if (cstId != null ? !cstId.equals(that.cstId) : that.cstId != null) return false;
        if (taShift != null ? !taShift.equals(that.taShift) : that.taShift != null) return false;
        if (lotType != null ? !lotType.equals(that.lotType) : that.lotType != null) return false;
        if (ownerId != null ? !ownerId.equals(that.ownerId) : that.ownerId != null) return false;
        if (ownerType != null ? !ownerType.equals(that.ownerType) : that.ownerType != null) return false;
        if (slotNo != null ? !slotNo.equals(that.slotNo) : that.slotNo != null) return false;
        if (abnormalFlag != null ? !abnormalFlag.equals(that.abnormalFlag) : that.abnormalFlag != null) return false;
        if (mesLinkKry != null ? !mesLinkKry.equals(that.mesLinkKry) : that.mesLinkKry != null) return false;
        if (maskId != null ? !maskId.equals(that.maskId) : that.maskId != null) return false;
        if (preEndTime != null ? !preEndTime.equals(that.preEndTime) : that.preEndTime != null) return false;
        if (preStepId != null ? !preStepId.equals(that.preStepId) : that.preStepId != null) return false;
        if (preEquipId != null ? !preEquipId.equals(that.preEquipId) : that.preEquipId != null) return false;
        if (preSubEquipId != null ? !preSubEquipId.equals(that.preSubEquipId) : that.preSubEquipId != null)
            return false;
        if (preRecipeId != null ? !preRecipeId.equals(that.preRecipeId) : that.preRecipeId != null) return false;
        if (preSubRecipeId != null ? !preSubRecipeId.equals(that.preSubRecipeId) : that.preSubRecipeId != null)
            return false;
        if (arrayGlassId != null ? !arrayGlassId.equals(that.arrayGlassId) : that.arrayGlassId != null) return false;
        if (cfGlassId != null ? !cfGlassId.equals(that.cfGlassId) : that.cfGlassId != null) return false;
        if (glassId != null ? !glassId.equals(that.glassId) : that.glassId != null) return false;
        if (chipNo != null ? !chipNo.equals(that.chipNo) : that.chipNo != null) return false;
        return true;
    }

    @Override
    public int hashCode() {
        int result = stepId != null ? stepId.hashCode() : 0;
        result = 31 * result + (subEquipId != null ? subEquipId.hashCode() : 0);
        result = 31 * result + (chipId != null ? chipId.hashCode() : 0);
        result = 31 * result + (chipEndTime != null ? chipEndTime.hashCode() : 0);
        result = 31 * result + (chipStartTime != null ? chipStartTime.hashCode() : 0);
        result = 31 * result + (productId != null ? productId.hashCode() : 0);
        result = 31 * result + (productVersion != null ? productVersion.hashCode() : 0);
        result = 31 * result + (routeId != null ? routeId.hashCode() : 0);
        result = 31 * result + (groupId != null ? groupId.hashCode() : 0);
        result = 31 * result + (equipId != null ? equipId.hashCode() : 0);
        result = 31 * result + (runMode != null ? runMode.hashCode() : 0);
        result = 31 * result + (recipeId != null ? recipeId.hashCode() : 0);
        result = 31 * result + (operatorId != null ? operatorId.hashCode() : 0);
        result = 31 * result + (cstId != null ? cstId.hashCode() : 0);
        result = 31 * result + (taShift != null ? taShift.hashCode() : 0);
        result = 31 * result + (lotType != null ? lotType.hashCode() : 0);
        result = 31 * result + (ownerId != null ? ownerId.hashCode() : 0);
        result = 31 * result + (ownerType != null ? ownerType.hashCode() : 0);
        result = 31 * result + (slotNo != null ? slotNo.hashCode() : 0);
        result = 31 * result + (abnormalFlag != null ? abnormalFlag.hashCode() : 0);
        result = 31 * result + (mesLinkKry != null ? mesLinkKry.hashCode() : 0);
        result = 31 * result + (maskId != null ? maskId.hashCode() : 0);
        result = 31 * result + (preEndTime != null ? preEndTime.hashCode() : 0);
        result = 31 * result + (preStepId != null ? preStepId.hashCode() : 0);
        result = 31 * result + (preEquipId != null ? preEquipId.hashCode() : 0);
        result = 31 * result + (preSubEquipId != null ? preSubEquipId.hashCode() : 0);
        result = 31 * result + (preRecipeId != null ? preRecipeId.hashCode() : 0);
        result = 31 * result + (preSubRecipeId != null ? preSubRecipeId.hashCode() : 0);
        result = 31 * result + (arrayGlassId != null ? arrayGlassId.hashCode() : 0);
        result = 31 * result + (cfGlassId != null ? cfGlassId.hashCode() : 0);
        result = 31 * result + (glassId != null ? glassId.hashCode() : 0);
        result = 31 * result + (chipNo != null ? chipNo.hashCode() : 0);
        return result;
    }
}
